
import request from '@/utils/request'
const serviceName = 'Device'
//  列表
export function queryDevices(data) {
  return request({
    url: serviceName + '/Device/QueryDevices',
    method: 'post',
    data
  })
}
//  详情
export function getDevice(data) {
  return request({
    url: serviceName + '/Device/GetDevice',
    method: 'post',
    data
  })
}
//  新增 修改
export function saveDevice(data) {
  return request({
    url: serviceName + '/Device/SaveDevice',
    method: 'post',
    data
  })
}
//  删除
export function deleteDevices(data) {
  return request({
    url: serviceName + '/Device/DeleteDevices',
    method: 'post',
    data
  })
}

//  导入
export function importDevice(data) {
  return request({
    url: serviceName + '/Device/ImportDevice',
    method: 'post',
    data
  })
}
//  查看二维码
export function viewQrcode(data) {
  return request({
    url: serviceName + '/Device/ViewQrcode',
    method: 'post',
    data
  })
}

//  导入二维码
export function downloadQrcodes(data) {
  return request({
    url: serviceName + '/Device/DownloadQrcodes',
    method: 'post',
    data
  })
}

export default {
  queryDevices,
  getDevice,
  saveDevice,
  deleteDevices,
  importDevice,
  viewQrcode,
  downloadQrcodes
}
